package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目收入支出按月统计 历史记录对象 t_sp_count_income_history
 * 
 * @author ruoyi
 * @date 2024-12-10
 */
public class TSpCountIncomeHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目ID */
    private Long projectId;

    /** 统计年月：202402 */
    private String countDate;

    /** 费用类别ID */
    private Long costId;

    /** 金额合计 */
    @Excel(name = "金额合计")
    private BigDecimal totalMoney;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatePerson;

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setCountDate(String countDate) 
    {
        this.countDate = countDate;
    }

    public String getCountDate() 
    {
        return countDate;
    }
    public void setCostId(Long costId) 
    {
        this.costId = costId;
    }

    public Long getCostId() 
    {
        return costId;
    }
    public void setTotalMoney(BigDecimal totalMoney) 
    {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getTotalMoney() 
    {
        return totalMoney;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setCreatePerson(String createPerson) 
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() 
    {
        return createPerson;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setUpdatePerson(String updatePerson) 
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() 
    {
        return updatePerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("countDate", getCountDate())
            .append("costId", getCostId())
            .append("totalMoney", getTotalMoney())
            .append("createDate", getCreateDate())
            .append("createPerson", getCreatePerson())
            .append("updateDate", getUpdateDate())
            .append("updatePerson", getUpdatePerson())
            .toString();
    }
}
